package com.itheima.springboottlias.aspect;

import lombok.extern.slf4j.Slf4j;
import org.aspectj.lang.JoinPoint;
import org.aspectj.lang.annotation.Before;
import org.aspectj.lang.annotation.Pointcut;
import org.springframework.stereotype.Component;

/**
 * @author iTaotao
 * @date 2023/7/19 14:23
 * @desciption: 删除切点
 */
@Slf4j
@Component
//@Aspect
public class MyAspect2 {
    @Pointcut("execution(* com.itheima.springboottlias.service.impl.DeptServiceImpl.selectList(..))")
    public void pt() {

    }

    @Before("pt()")
    public void before(JoinPoint joinPoint) {
        log.info("before ...9999999999999999");

    }

}
